
import { Component, OnInit } from 'angular2/core';

@Component({
    selector: 'weui-searchbar',
    templateUrl: './app/component/searchbar/searchbar.html'
})

export class SearchBarComponent implements OnInit {

    private _search_focusing = false;
    private _search_input;

    constructor() { }

    ngOnInit() { }

    search_input_focus() {
        this._search_focusing = true;
    }

    search_input_blur() {
        this._search_focusing = false;
    }

    search_clear() {
        this._search_input = "";
    }

    search_cancel() {
        this.search_clear();
    }

}